package com;

import com.dao.ChatterDAO;
import com.domain.Chatter;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DisplayChatters {
    @Resource
    private ChatterDAO chatterDAO;

    @Transactional
    public List<Chatter> getUsers() {
        return chatterDAO.getUsers();
    }

}
